<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import './assets/css/element-common.scss'
export default {
  created() {
		if (window.localStorage.getItem('token')) {
			if (!this.$store.state.isWebsocket) {
				this.$store.dispatch('ws', window.localStorage.getItem('userId'))
			}
		}
  }
}
</script>

<style>
@import url('./assets/css/public.css');
#app {
  max-width: 1920px;
  min-width: 1200px;
  height: 100%;
}
</style>
